package com.haruhi.ws.server;

import io.undertow.server.HttpServerExchange;
import io.undertow.util.HeaderMap;
import io.undertow.util.HttpString;

import java.io.InputStream;
import java.util.Deque;
import java.util.Map;

public class HttpRequest {
    private final HttpServerExchange exchange;

    public HttpRequest(HttpServerExchange exchange) {
        this.exchange = exchange;
    }
    public HeaderMap getRequestHeaders(){
        return exchange.getRequestHeaders();
    }
    public String getRequestPath(){
        return exchange.getRequestPath();
    }
    public HttpString getRequestMethod(){
        return exchange.getRequestMethod();
    }
    public String getRequestURL(){
        return exchange.getRequestURL();
    }
    public String getRequestURI(){
        return exchange.getRequestURI();
    }
    public long getRequestContentLength(){
        return exchange.getRequestContentLength();
    }
    public String getRequestScheme(){
        return exchange.getRequestScheme();
    }
    public String getQueryString(){
        return exchange.getQueryString();
    }
    public Map<String, Deque<String>> getQueryParameters(){
        return exchange.getQueryParameters();
    }
    public String getHostName(){
        return exchange.getHostName();
    }
    public int getHostPort(){
        return exchange.getHostPort();
    }
    public String getHostAndPort(){
        return exchange.getHostAndPort();
    }
    public InputStream getInputStream(){
        return exchange.getInputStream();
    }

}
